From cc60b785f631cda5524b9cb9225e6baa64ebed0b Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 17 Nov 2006 14:00:45 +0000 Subject: [PATCH] [LIBXC] Replace API uses of size_t with ulong. Avoids possibility of different FILE_OFFSET_BITS defn. across the interface. Signed-off-by: Keir Fraser --- tools/libxc/xc_acm.c | 3 +-- tools/libxc/xc_tbuf.c | 4 ++-- tools/libxc/xenctrl.h | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/libxc/xc_acm.c b/tools/libxc/xc_acm.c index d80bf2b284..abe35712ed 100644 --- a/tools/libxc/xc_acm.c +++ b/tools/libxc/xc_acm.c @@ -14,8 +14,7 @@ #include "xc_private.h" - -int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size) +int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size) { int ret = -1; DECLARE_HYPERCALL; diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c index a30d1fb1fc..920c5b5abd 100644 --- a/tools/libxc/xc_tbuf.c +++ b/tools/libxc/xc_tbuf.c @@ -57,7 +57,7 @@ int xc_tbuf_get_size(int xc_handle, unsigned long *size) return rc; } -int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn, +int xc_tbuf_enable(int xc_handle, unsigned long pages, unsigned long *mfn, unsigned long *size) { DECLARE_SYSCTL; @@ -68,7 +68,7 @@ int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn, * set (since trace buffers cannot be reallocated). If we really have no * buffers at all then tbuf_enable() will fail, so this is safe. */ - (void)xc_tbuf_set_size(xc_handle, cnt); + (void)xc_tbuf_set_size(xc_handle, pages); if ( tbuf_enable(xc_handle, 1) != 0 ) return -1; diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index d5029407dc..c7a8a5abd9 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -556,8 +556,8 @@ long xc_get_tot_pages(int xc_handle, uint32_t domid); * Gets the machine address of the trace pointer area and the size of the * per CPU buffers. */ -int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn, - unsigned long *size); +int xc_tbuf_enable(int xc_handle, unsigned long pages, + unsigned long *mfn, unsigned long *size); /* * Disable tracing buffers. @@ -610,7 +610,7 @@ int xc_add_mmu_update(int xc_handle, xc_mmu_t *mmu, unsigned long long ptr, unsigned long long val); int xc_finish_mmu_updates(int xc_handle, xc_mmu_t *mmu); -int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size); +int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size); /* * Return a handle to the event channel driver, or -1 on failure, in which case -- 2.30.2